package com.hpxx.ylzswl.dialog;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.hpxx.ylzswl.R;




/**
 * 退出登录
 * @author Administrator
 */
public class UpDataVersionDialog extends BaseDialog {

	private Button bt_ok;
	private Button bt_qx;
	private String text;

	public UpDataVersionDialog(Context context) {
		super(context);
		this.context = context;
	}

	public UpDataVersionDialog(Context context, String text, int theme, LeaveMyDialogListener listener) {
		super(context, theme,listener);
		this.context = context;
		this.listener = listener;
		this.text = text;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.dialog_confirm);
		TextView tv_dailog_text = findViewById(R.id.tv_dailog_text);
		tv_dailog_text.setText(text);
		TextView tv_cancel = findViewById(R.id.tv_cancel);
		TextView tv_confirm = findViewById(R.id.tv_confirm);
		tv_confirm.setOnClickListener(this);
		tv_cancel.setVisibility(View.GONE);
		tv_cancel.setOnClickListener(this);
		tv_cancel.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View view) {
				dismiss();
			}
		});


	}

}